package com.limm.service;


import com.limm.cloud01.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "SPRINGCLOUD-API",fallbackFactory = DeptClientServiceFallbackFactory.class)
public interface FeignDeptService {

    @GetMapping("/cloud/dept/selectByID/{dept_no}")
    Dept selectByID(@PathVariable("dept_no") Long dept_no);

    @GetMapping("/cloud/dept/findAll")
    List<Dept> findAll();
}
